﻿using SqlSugar;
using YL.Utils.Extensions;

namespace YL.Core.Entity
{
    [SugarTable("whr_notification_recipient")]
    public class Whr_notification_recipient
    {
        /// <summary>
        /// 通知接收id
        /// </summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public int CategoryId { get; set; }
        
        /// <summary>
        /// 通知id
        /// </summary>
        [SugarColumn(ColumnName = "notification_id")]
        public int NotificationId { get; set; }

        /// <summary>
        /// 阅读时间
        /// </summary>
        [SugarColumn(ColumnName = "read_time")]
        public int ReadTime { get; set; } = DateTimeExt.GetUnixTimestamp();

        /// <summary>
        /// 用户类型（1：用户端、2、教师、3、后台管理员）
        /// </summary>
        [SugarColumn(ColumnName = "user_type")]
        public byte UserType { get; set; }

        /// <summary>
        /// 教师端是否展示
        /// </summary>
        [SugarColumn(ColumnName = "user_id")]
        public int UserId { get; set; }

    }
}
